import { ref } from 'vue'
import { findHot } from '@/api/home'

/**
 * @description // 人气推荐
 * @returns
 */
export function useHot () {
  // 人气推荐
  const newHot = ref([])
  async function getNewHot () {
    const res = await findHot()
    // console.log(res)
    newHot.value = res.data.result
  }
  getNewHot()
  return {
    newHot
  }
}
